package com.powernode.service;

import com.powernode.domain.ChangeStock;
import com.powernode.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.dto.OrderConfirmDto;
import com.powernode.vo.OrderStatus;
import com.powernode.vo.OrderVo;

public interface OrderService extends IService<Order>{


    OrderStatus selectUserOrderStatus(String userId);

    OrderVo selectOrderConfirmInfo(String userId, OrderConfirmDto orderConfirmDto);

    String submitOrder(String userId, OrderVo orderVo);

    void orderRollBack(Order order, ChangeStock changeStock);
}
